﻿using CSRedis;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace com.iot.core.util
{
    public class RedisUtil
    {
        public static void Set(string key, object value, int expireSeconds = -1, RedisExistence? exists = null)
        {
            RedisHelper.Set(key, value, expireSeconds, exists);
        }
        public static string Get(string key)
        {
            return RedisHelper.Get(key);
        }
        public static T Get<T>(string key)
        {
            return RedisHelper.Get<T>(key);
        }

    }
}
